﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace AppConfigurationMVC.Models
{
    public class ConfigurationModels
    {        
        public int ConfigID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Key")]
        public string ConfigKey { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Value")]
        public string ConfigValue { get; set; }

        public DateTime RecordCreateTms { get; set; }

        public DateTime RecordUpdateTms { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Reason")]
        public string ConfigReason { get; set; }

        [Required]
        [DataType(DataType.Html)]
        [Display(Name = "Reason")]
        public bool ConfigEnabled { get; set; }
    }
}